package com.common.retrofit.methods;

import android.graphics.drawable.shapes.OvalShape;

import com.common.bean.FriendCicleBean;
import com.common.retrofit.base.BaseMethods;
import com.common.retrofit.service.HaiNingService;

import rx.Observable;
import rx.Subscriber;

public class ResponseMethods extends BaseMethods {

    private static ResponseMethods m_ins = null;

    public static ResponseMethods getInstance() {
        if (m_ins == null) {
            synchronized (ResponseMethods.class) {
                if (m_ins == null) {
                    m_ins = new ResponseMethods();
                }
            }
        }
        return m_ins;
    }

    @Override
    protected String getHttpUrl() {
        return "Friend/";
    }

    private HaiNingService initService() {
        return getRetrofit().create(HaiNingService.class);
    }


    public void dynamic_reply(Subscriber<Object> subscriber,
                      String uid  ,String hashid ,String cid,String did,String fid,String content ) {
        Observable observable = initService().dynamic_reply(System.currentTimeMillis()+"",
                "a97bd6553a4445f56d33a234861a78c6",uid ,hashid,cid,did,fid,content
        );
        toSubscribe(observable, subscriber);
    }
}
